﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200101B RID: 4123
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournGameDifficultyInfo : IMessage<RogueTournGameDifficultyInfo>, IMessage, IEquatable<RogueTournGameDifficultyInfo>, IDeepCloneable<RogueTournGameDifficultyInfo>, IBufferMessage
	{
		// Token: 0x17003422 RID: 13346
		// (get) Token: 0x0600B871 RID: 47217 RVA: 0x001F1879 File Offset: 0x001EFA79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournGameDifficultyInfo> Parser
		{
			get
			{
				return RogueTournGameDifficultyInfo._parser;
			}
		}

		// Token: 0x17003423 RID: 13347
		// (get) Token: 0x0600B872 RID: 47218 RVA: 0x001F1880 File Offset: 0x001EFA80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournGameDifficultyInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003424 RID: 13348
		// (get) Token: 0x0600B873 RID: 47219 RVA: 0x001F1892 File Offset: 0x001EFA92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournGameDifficultyInfo.Descriptor;
			}
		}

		// Token: 0x0600B874 RID: 47220 RVA: 0x001F1899 File Offset: 0x001EFA99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGameDifficultyInfo()
		{
		}

		// Token: 0x0600B875 RID: 47221 RVA: 0x001F18AC File Offset: 0x001EFAAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGameDifficultyInfo(RogueTournGameDifficultyInfo other) : this()
		{
			this.difficultyIdList_ = other.difficultyIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B876 RID: 47222 RVA: 0x001F18D6 File Offset: 0x001EFAD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGameDifficultyInfo Clone()
		{
			return new RogueTournGameDifficultyInfo(this);
		}

		// Token: 0x17003425 RID: 13349
		// (get) Token: 0x0600B877 RID: 47223 RVA: 0x001F18DE File Offset: 0x001EFADE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DifficultyIdList
		{
			get
			{
				return this.difficultyIdList_;
			}
		}

		// Token: 0x0600B878 RID: 47224 RVA: 0x001F18E6 File Offset: 0x001EFAE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournGameDifficultyInfo);
		}

		// Token: 0x0600B879 RID: 47225 RVA: 0x001F18F4 File Offset: 0x001EFAF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournGameDifficultyInfo other)
		{
			return other != null && (other == this || (this.difficultyIdList_.Equals(other.difficultyIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B87A RID: 47226 RVA: 0x001F1928 File Offset: 0x001EFB28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.difficultyIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B87B RID: 47227 RVA: 0x001F195C File Offset: 0x001EFB5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B87C RID: 47228 RVA: 0x001F1964 File Offset: 0x001EFB64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B87D RID: 47229 RVA: 0x001F196D File Offset: 0x001EFB6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.difficultyIdList_.WriteTo(ref output, RogueTournGameDifficultyInfo._repeated_difficultyIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B87E RID: 47230 RVA: 0x001F1994 File Offset: 0x001EFB94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.difficultyIdList_.CalculateSize(RogueTournGameDifficultyInfo._repeated_difficultyIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B87F RID: 47231 RVA: 0x001F19CD File Offset: 0x001EFBCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournGameDifficultyInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.difficultyIdList_.Add(other.difficultyIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B880 RID: 47232 RVA: 0x001F19FB File Offset: 0x001EFBFB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B881 RID: 47233 RVA: 0x001F1A04 File Offset: 0x001EFC04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U && num != 42U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.difficultyIdList_.AddEntriesFrom(ref input, RogueTournGameDifficultyInfo._repeated_difficultyIdList_codec);
				}
			}
		}

		// Token: 0x04004A62 RID: 19042
		private static readonly MessageParser<RogueTournGameDifficultyInfo> _parser = new MessageParser<RogueTournGameDifficultyInfo>(() => new RogueTournGameDifficultyInfo());

		// Token: 0x04004A63 RID: 19043
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004A64 RID: 19044
		public const int DifficultyIdListFieldNumber = 5;

		// Token: 0x04004A65 RID: 19045
		private static readonly FieldCodec<uint> _repeated_difficultyIdList_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04004A66 RID: 19046
		private readonly RepeatedField<uint> difficultyIdList_ = new RepeatedField<uint>();
	}
}
